

<#if isBelowRenewThresold>
<div class="alert alert-danger alert-dismissible" role="alert">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <#if !registry.selfPreservationModeEnabled>
        <h4 id="uptime"><font size="+1" color="red"><b>RENEWALS ARE LESSER THAN THE THRESHOLD. THE SELF PRESERVATION MODE IS TURNED OFF.THIS MAY NOT PROTECT INSTANCE EXPIRY IN CASE OF NETWORK/OTHER PROBLEMS.</b></font></h4>
    <#else>
        <h4 id="uptime"><font size="+1" color="red"><b>EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE.</b></font></h4>
    </#if>
</div>
<#elseif !registry.selfPreservationModeEnabled>
<div class="alert alert-danger alert-dismissible" role="alert">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <h4 id="uptime"><font size="+1" color="red"><b>THE SELF PRESERVATION MODE IS TURNED OFF.THIS MAY NOT PROTECT INSTANCE EXPIRY IN CASE OF NETWORK/OTHER PROBLEMS.</b></font></h4>
</div>
</#if>

<div class="panel panel-default">
    <div class="panel-heading">系统状态</div>
    <div class="panel-body">
        <table id='instances' class="table table-condensed table-striped table-hover">
      <#if amazonInfo??>
        <tr>
            <td>EUREKA SERVER</td>
            <td>AMI: ${amiId!}</td>
        </tr>
        <tr>
            <td>Zone</td>
            <td>${availabilityZone!}</td>
        </tr>
        <tr>
            <td>instance-id</td>
            <td>${instanceId!}</td>
        </tr>
      </#if>
            <tr>
                <td>Environment</td>
                <td>${environment!}</td>
            </tr>
            <tr>
                <td>Data center</td>
                <td>${datacenter!}</td>
            </tr>
            <tr>
                <td>Current time</td>
                <td>${currentTime}</td>
            </tr>
            <tr>
                <td>Uptime</td>
                <td>${upTime}</td>
            </tr>
            <tr>
                <td>Lease expiration enabled</td>
                <td>${registry.leaseExpirationEnabled?c}</td>
            </tr>
            <tr>
                <td>Renews threshold</td>
                <td>${registry.numOfRenewsPerMinThreshold}</td>
            </tr>
            <tr>
                <td>Renews (last min)</td>
                <td>${registry.numOfRenewsInLastMin}</td>
            </tr>
        </table>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">DS Replicas</div>
    <div class="panel-body">
        <ul class="list-group">
              <#list replicas as replica>
                  <li class="list-group-item"><a href="${replica.value}">${replica.key}</a></li>
              </#list>
        </ul>
    </div>
</div>




